package com.juqimiao.raccoon.commodity.service;
import com.juqimiao.raccoon.commodity.appobj.CategoryGroupListAO;
import com.juqimiao.raccoon.commodity.dto.AddCategoryGroupCmd;
import com.juqimiao.raccoon.commodity.dto.SortCatgoryGroupCmd;
import com.juqimiao.raccoon.commodity.dto.UpdateCategoryGroupCmd;
import com.juqimiao.raccoon.commodity.dto.query.ListCategoryGroupQry;
import com.juqimiao.linn.transfer.Response;
import com.juqimiao.linn.transfer.query.QueryResponse;
import com.juqimiao.raccoon.commodity.dto.SwitchCategoryGroupPublishCmd;

import java.util.List;

/**
 * @author Collin Cai
 */
public interface CategoryGroupServiceI {

    Response createGroup(String uerId, AddCategoryGroupCmd cmd);

    Response updateGroup(String userId, UpdateCategoryGroupCmd cmd);

    Response publishGroup(String userId, SwitchCategoryGroupPublishCmd cmd);

    QueryResponse<List<CategoryGroupListAO>> list(String id, ListCategoryGroupQry qry);

    Response sort(SortCatgoryGroupCmd cmd);

}
